<?php

require_once '../library/Utility/Converter.php'; //dung chuyen doi giua doi tuong va mang (object to array || array to object)

class Application_Model_Clicks extends Zend_Db_Table_Abstract {

    protected $_name = 'Click';
    
	public function getMetadata()
	{
		if(empty($this->_metadata))
		{
			$this->_setupMetadata();
		}
		return $this->_metadata;
	}
	public function _insert($object) {
		try {
			$object->article_id = null;
			$data = Utility_Converter::objectToArray($object);
			return parent::insert($data);
		}
		catch (Zend_Db_Exception $ex) {
			throw $ex;
		}
	}

}